<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<title>档案变更</title>
	<link rel="stylesheet" type="text/css" th:href="@{/lib/layui/css/layui.css}"/>
	<link rel="stylesheet" type="text/css" th:href="@{/css/renshidengji.css}"/>
	<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
	<script th:src="@{/js/jquery-3.6.0.js}" charset="utf-8"></script>
	<script th:src="@{/js/renshifuhe.js}" charset="UTF-8"></script>
</head>
<body>
<div class="box1">
	<form class="layui-form" enctype="multipart/form-data" id="from-fu">
		<p style="font-size: 10px;">人事管理>><a href="/renshiwelcome">人事档案管理</a>>>档案变更</p><br>
		<table border="0" class="layui-table myTable" th:each="v:${pdms}">
			<tr>
				<th>档案编码</th>
				<th><input type="text" class="layui-input" name="fileCoding" th:value="${v.getFileCoding()}"/></th>
				<th>变更类型</th>
				<th>
					<select name="changeTheType"  class="layui-select" >
						<option value="">----请选择----</option>
						<option th:selected="${v.getChangeTheType()=='转正'}" value="转正">转正</option>
						<option th:selected="${v.getChangeTheType()=='调薪'}" value="调薪">调薪</option>
						<option th:selected="${v.getChangeTheType()=='续签'}" value="续签">续签</option>
						<option th:selected="${v.getChangeTheType()=='调岗'}" value="调岗">调岗</option>
						<option th:selected="${v.getChangeTheType()=='离职'}" value="离职">离职</option>
						<option th:selected="${v.getChangeTheType()=='其他变更'}" value="其他变更">其他变更</option>
					</select>
				</th>
				<th colspan="2" rowspan="6">
					<div style="margin: 0px auto">
						<img id="imghead"  width="300" height="300"  th:src="${v.getPhonePath()}" style="display: inline-block;"/> <!--图片显示位置-->
						<input type="file" name="imggggg" id="file" onchange="getPhotoSize(this)" style="display: block;margin-top: 10px;">
						<!--                        <img id="imghead"  name="imggg" width="300" height="200" style="display: inline-block;"/> &lt;!&ndash;图片显示位置&ndash;&gt;-->
						<!--                        <input type="file" name="imggggg" id="sdsds" onchange="getPhotoSize(this)" style="display: block;margin-top: 10px;" />-->
					</div>
				</th>
			</tr>
			<tr>
				<th>所属部门:</th>
				<th>
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==1" value="总裁办" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==2" value="教育产品发展部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==3" value="职业教育研究院" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==4" value="区域市场发展一部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==5" value="区域市场发展二部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==6" value="区域市场发展三部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==7" value="产品管理部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==8" value="质量管理部" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==9" value="产品设计中心" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==10" value="平台研发中心" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==11" value="人力资源中心" />
					<input type="text"  class="layui-input" style="display: inline-block;" th:if="${v.getDepartment()}==12" value="财务部" />
					<!-- <button type="button" class="layui-btn layui-btn-primary" data-type="test5" style="display: inline-block;">fff</button> -->
				</th>
				<th>档案状态:</th>
				<th>
					<select name="fstatus"  class="layui-select">
						<option value="">----请选择----</option>
						<option th:selected="${v.getFstatus()}=='试用期'" value="试用期">试用期</option>
						<option th:selected="${v.getFstatus()}=='正式员工'" value="正式员工">正式员工</option>
						<option th:selected="${v.getFstatus()}=='离职'" value="离职">离职</option>
						<option th:selected="${v.getFstatus()}=='已删除'" value="已删除">已删除</option>
						<option th:selected="${v.getFstatus()}=='实习员工'" value="实习员工">实习员工</option>
					</select>
				</th>
			</tr>
			<tr>
				<th>职位名称:</th>
				<th><input type="text" class="layui-input" th:if="${v.getJobTitle()}==1" value="技术总监"/>
					<input type="text" class="layui-input" th:if="${v.getJobTitle()}==2" value="财务主管"/>
					<input type="text" class="layui-input" th:if="${v.getJobTitle()}==3" value="技术培训师"/>
				</th>
				<th>职位编码:</th>
				<th><input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==1" value="BDQN-BMO1"/>
					<input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==2" value="BDQN-BMO2"/>
					<input type="text" class="layui-input jobTitle" th:if="${v.getJobTitle()}==3" value="BDQN-BMO3"/>
				</th>
			</tr>
			<tr>
				<th>姓名:</th>
				<th><input type="text" id="niuc1" class="layui-input" name="name" th:value="${v.getName()}"/></th>
				<th>性别:</th>
				<th>
					<select name="sex"  class="layui-select">
						<option value="">----请选择----</option>
						<option th:selected="${v.getSex()}=='男'" value="男">男</option>
						<option th:selected="${v.getSex()}=='女'" value="女">女</option>
					</select>
				</th>
			</tr>
			<tr>
				<th>EMAIL:</th>
				<th><input type="text" id="niud1" class="layui-input" name="email" th:value="${v.getEmail()}"/></th>
				<th>联系电话:</th>
				<th><input type="text" id="niud2" class="layui-input" name="phone" th:value="${v.getPhone()}"/></th>
			</tr>
			<tr>
				<th>住址:</th>
				<th colspan="3"><textarea id="niue" class="layui-textarea myText" name="address" th:text="${v.getAddress()}"></textarea></th>
			</tr>
			<tr>
				<th>身份证号:</th>
				<th><input type="text" id="niuf1" class="layui-input" name="idNumber" th:value="${v.getIdNumber()}"/></th>
				<th>户口所在地:</th>
				<th><input type=" text" id="niuf2" class="layui-input" name="registered" th:value="${v.getRegistered()}"/></th>
				<th>政治面貌:</th>
				<th><input type="text" id="niuf3" class="layui-input" name="politicsStatus" th:value="${v.getPoliticsStatus()}"/></th>
			</tr>
			<tr>
				<th>毕业院校:</th>
				<th><input type="text" id="niug1" class="layui-input" name="school" th:value="${v.getSchool()}"/></th>
				<th>专业:</th>
				<th><input type="text" id="niug2" class="layui-input" name="major" th:value="${v.getMajor()}"/></th>
				<th>学历:</th>
				<th>
					<select name="education" id="niug3" class="layui-select">
						<option value="0">----请选择----</option>
						<option th:selected="${v.getEducation()}=='专科'" value="专科">专科</option>
						<option th:selected="${v.getEducation()}=='本科'" value="本科">本科</option>
						<option th:selected="${v.getEducation()}=='硕士'" value="硕士">硕士</option>
						<option th:selected="${v.getEducation()}=='博士'" value="博士">博士</option>
					</select>
				</th>
			</tr>
			<tr>
				<th>薪酬标准:</th>
				<th>
					<select name="salaaryStandard" id="niuh1" class="layui-input" >
						<option value="0">----请选择----</option>
						<option th:selected="${v.getSalaaryStandard()}=='3'" value="3">高级软件工程师</option>
						<option th:selected="${v.getSalaaryStandard()}=='2'" value="2">中级软件工程师</option>
						<option th:selected="${v.getSalaaryStandard()}=='1'" value="1">初级软件工程师</option>
					</select>
				</th>
				<th>开户行:</th>
				<th><input type="text" id="niuh2" class="layui-input" name="openingBank" th:value="${v.getOpeningBank()}"/></th>
				<th>银行卡号:</th>
				<th><input type="text" id="niuh3" class="layui-input" name="cardNo" th:value="${v.getCardNo()}"/></th>
			</tr>
			<tr>
				<th>社保卡号:</th>
				<th><input type="text" id="niuj1" class="layui-input" name="social" th:value="${v.getSocial()}"/></th>
				<th>登记人:</th>
				<th><input type="text" id="niuj2" class="layui-input" name="registrant" th:value="${v.getRegistrant()}"/></th>
				<th>建档时间:</th>
				<th><input type="date" id="niuj3" class="layui-input" name="filecreatedDate" th:value="${#dates.format(v.getFilecreatedDate(),'yyyy-MM-dd')}"/></th>
			</tr>
			<tr>
				<th>个人履历:</th>
				<th colspan="5">
					<textarea class="layui-textarea myText" id="niuk" name="redumes" th:text="${v.getRedumes()}"></textarea>
				</th>
			</tr>
			<tr>
				<th>家庭关系信息:</th>
				<th colspan="5">
					<textarea class="layui-textarea myText" id="niul" name="family" th:text="${v.getFamily()}"></textarea>
				</th>
			</tr>
			<tr>
				<th>备注:</th>
				<th colspan="5">
					<textarea class="layui-textarea myText" id="nium" name="notes" th:text="${v.getNotes()}"></textarea>
				</th>
			</tr>
			<tr>
				<th>简历附件:</th>
				<th>
					<input type="file" name="file" th:value="${v.getResumeName()}"/>
				</th>
			</tr>
			<input type="hidden" name="id" class="zhuazhi" th:value="${v.getId()}">
			<input type="hidden" name="jobTitle" class="shazyebushiss" th:value="${v.getJobTitle()}">
			<input type="hidden" name="department" class="suoshubumen" th:value="${v.getDepartment()}">
		</table>
		<div id="anjian" align="center">
			<input type="button" id="msjkadfnbsadjfvugisd" value="保存" class="layui-btn layui-btn-radius" />
			<input type="button" id="niup2" value="变更审核" class="layui-btn layui-btn-radius biangengshenhe" onclick="renshibiangengshenqing()"/>
			<a href="/renshiwelcome" id="niup3" class="layui-btn layui-btn-radius">返回</a>
		</div>
	</form>
</div>
<script>
	layui.use('form', function() {
		var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

		//……

		//但是，如果你的HTML是动态生成的，自动渲染就会失效
		//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		// form.render();
	});
</script>
</body>
</html>
